import post2Portal from 'src/api/common'

export const userList = (data) => {
  let params = {
    api: '/sys/user/list',
    methods: 'GET',
    data: data
  }
  return post2Portal(params);
};

export const addUser = (data) => {
  let params = {
    api: '/sys/user/add',
    methods: 'POST',
    data: data
  }
  return post2Portal(params);
}


export const removeUser = (data) => {
  let params = {
    api: '/sys/user/batch/remove',
    methods: 'POST',
    data: data
  }
  return post2Portal(params);
};


export const updateUser = (data) => {
  let params = {
    api: '/sys/user/update',
    methods: 'POST',
    data: data
  }
  return post2Portal(params);
};

